//
//  MLAEateryFoodTypeCell.m
//  MagicLampApp
//
//  Created by Zheng on 2019/4/12.
//  Copyright © 2019 zheng.magic.lamp.app. All rights reserved.
//

#import "MLAEateryFoodTypeCell.h"

@implementation MLAEateryFoodTypeCell

- (void)setModel:(MLAEateryFoodTypeModel *)model {
    _model = model;
    
    _nameLbl.text = _model.name;
    
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        
        _nameLbl = [[UILabel alloc] init];
        _nameLbl.font = CX_GetNormalFont(14);
        [self.contentView addSubview:_nameLbl];
        [_nameLbl mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.offset(15);
            make.centerY.offset(0);
        }];
        
        _editImgv = [[UIImageView alloc] init];
        _editImgv.image = [UIImage imageNamed:@"f_type_ed"];
        [self.contentView addSubview:_editImgv];
        [_editImgv mas_makeConstraints:^(MASConstraintMaker *make) {
            make.right.offset(-15);
            make.width.offset(26);
            make.height.offset(6);
            make.centerY.offset(0);
        }];
        
    }
    return self;
}

@end
